holyhope/Test WordPress language files

Check internationalization files for WordPress plugins for being up-to-date.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Maintainedlast commit Jun 23, 2025
License
MPL 2.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: holyhope/test-wordpress-languages-github-action@8ed87ecf3a8eb1824d3f62b450d0cb9e28890ec9 # v4.0.2

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
slugPlugin or theme slug.yes
sourceDirectory to scan for string extraction.no.
pot_filePath to an existing POT file to use for updating. Default: `{source}/{slug}.pot`no
po_pathPO files to update or a directory containing multiple PO files. Type: multi-line string Default: all PO files in the source directory with the same prefix as the POT file.no
languages_directoryPath to the languages directorynolanguages
ignored_patternsPattern to ignore when checking the POT file changes. Type: multi-line stringno# Copyright (C) "POT-Creation-Date: X-Generator:
domainText domain to look for in the source code, unless the `ignore-domain` option is `true`. Default: the "Text Domain" header of the plugin or theme is used.no
ignore_domainIgnore the text domain completely and extract strings with any text domain.nofalse
skip_jsSkips JavaScript string extraction. Useful when this is done in another build step, e.g. through Babel.nofalse
skip_phpSkips PHP string extraction.nofalse
skip_bladeSkips Blade-PHP string extraction.nofalse
skip_block_jsonSkips string extraction from block.json files.nofalse
skip_theme_jsonSkips string extraction from theme.json files.nofalse
skip_auditSkips string audit where it tries to find possible mistakes in translatable strings.notrue
excludeList of files and paths that should be skipped for string extraction. Simple glob patterns can be used, i.e. `foo-*.php` excludes any PHP file with the `foo-` prefix. Leading and trailing slashes are ignored, i.e. `/my/directory/` is the same as `my/directory`. The following files and folders are always excluded: node_modules, .git, .svn, .CVS, .hg, vendor, *.min.js. Type: multi-line string Default: Noneno
includeList of files and paths that should be used for string extraction. If provided, only these files and folders will be taken into account for string extraction. Simple glob patterns can be used, i.e. `foo-*.php` includes any PHP file with the `foo-` prefix. Leading and trailing slashes are ignored, i.e. `/my/directory/` is the same as `my/directory`. Type: multi-line string Default: Noneno
locationWhether to write `#: filename:line` lines. Note that disabling this option makes it harder for technically skilled translators to understand each message’s context.notrue
headersArray in JSON format of custom headers which will be added to the POT file.no
file_commentString that should be added as a comment to the top of the resulting POT file.no
package_nameName to use for package name in the resulting POT file's `Project-Id-Version` header. Overrides plugin or theme name, if applicable.no
fail_on_diffWhether to fail the build if there are differences in the POT file.notrue
fail_on_warningWhether to fail the build if there are warnings.notrue
wp_cli_pathPath to the WP-CLI binary. To use a custom version of WP-CLI, see the [`install-wp-cli` GitHub action](https://github.com/marketplace/actions/install-wp-cli) Default: Downloaded from the official WP-CLI website.no
namedescription
patch_pathPath to the patch file containing the changes to apply.
warnings_pathPath to the file containing warnings.