rockschtar/wordpress-translation-manager

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

1.1.1 2021-11-09 20:03 UTC

This package is auto-updated.

Last update: 2024-02-08 15:13:27 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.