rockschtar/wordpress-translation-manager

This package is abandoned and no longer maintained. The author suggests using the inpsyde/wp-translation-downloader package instead.

Composer plugin for manage (install/update/delete) WordPress translation for composer based WordPress projects

1.1.2 2024-04-19 16:25 UTC

README

This package provides a composer plugin for manage (install/update/delete) WordPress translation for composer based WordPress projects

Install

  1. Install this package via composer:
composer require rockschtar/wordpress-translation-manager
  1. 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.