rockschtar / wordpress-translation-manager
Composer plugin for manage (install/update/delete) WordPress translation for composer based WordPress projects
Installs: 8 248
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:composer-plugin
Requires (Dev)
- composer/composer: ^1.0 || > 2.2.0
- phpunit/phpunit: 9.*
This package is auto-updated.
Last update: 2024-04-19 16:26:54 UTC
README
This package provides a composer plugin for manage (install/update/delete) WordPress translation for composer based WordPress projects
Install
- Install this package via composer:
composer require rockschtar/wordpress-translation-manager
- Define languages as
WordPress Locale Code
and wp-content directory in the extras object of your
composer.json
file.
Example:
"extra": { "wordpress-translation-manager": { "languages": [ "de_DE", "es_ES" ], "wordpress-content-directory": "web/app" }, },
Usage
Every time you install or update a package via composer install
,
composer require
or composer update
the plugin automatically updates
the translations for you specified plugins/version or wordpress core.
If you start with this on an existing composer based wordpress project
you can run composer update-wordpress-translations
to force the update
of the translations.
Credits
License
The MIT License (MIT). Please see License File for more information.