Download the PHP package level-level/clarkson-wp-cli-twig-translations without Composer
On this page you can find all versions of the php package level-level/clarkson-wp-cli-twig-translations. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download level-level/clarkson-wp-cli-twig-translations
More information about level-level/clarkson-wp-cli-twig-translations
Files in level-level/clarkson-wp-cli-twig-translations
Package clarkson-wp-cli-twig-translations
Short Description Smart WP-CLI command to cache the Twig templates so they can be read by PoEdit
License GPL-2.0-only
Informations about the package clarkson-wp-cli-twig-translations
Clarkson WP-CLI Twig Translation commando
⚠️ Abandoned
This package is abandoned due to incompatibility with Twig version 3.12+.
You may use timber/wp-i18n-twig
instead.
Replacement instructions
composer remove level-level/clarkson-wp-cli-twig-translations
composer require timber/wp-i18n-twig
- If in your composer.json file you have commands set up to run this package, remove every line that starts with
wp clarkson-twig-translations
- If in your composer.json file you have commands set up to run the WP-CLI
wp i18n make-pot
command, change thewp
prefix to./vendor/wp-cli/wp-cli/bin/wp
composer update --lock
What
Parses all Twig files in your current themes templates
directory to .php
files.
How
-
Install package via
composer require level-level/clarkson-wp-cli-twig-translations
. -
Run
wp clarkson-twig-translations prepare-files
which dumps rendered.php
files in adist
directory in your current active theme. - Make sure your PoEdit
.pot
or.po
file configuration loads thisdist
folder when it updates from source like"X-Poedit-SearchPath-1: dist/rendered-templates\n"
Why
Free PoEdit doesn't scans Twig files. If you do want PoEdit to do this, buy the Pro version.
Filters
clarkson_twig_translations_cache_path
alters the location where to parse to.clarkson_twig_translations_templates_path
alters the location where thetemplates
are located in.
All versions of clarkson-wp-cli-twig-translations with dependencies
twig/string-extra Version ^3.1
twig/intl-extra Version ^3.1
twig/html-extra Version ^3.1
twig/markdown-extra Version ^3.1