PHPackages                             pelmered/composer-plugin-language-update - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Localization &amp; i18n](/categories/localization)
4. /
5. pelmered/composer-plugin-language-update

AbandonedLibrary[Localization &amp; i18n](/categories/localization)

pelmered/composer-plugin-language-update
========================================

Update translations for WP core, themes and plugins where managed by composer.

0.2.2(7y ago)63221[2 issues](https://github.com/pelmered/composer-wp-language-updater/issues)GPL-2.0+PHPPHP &gt;=7.0

Since Nov 18Pushed 3y ago1 watchersCompare

[ Source](https://github.com/pelmered/composer-wp-language-updater)[ Packagist](https://packagist.org/packages/pelmered/composer-plugin-language-update)[ Docs](https://angrycreative.com)[ RSS](/packages/pelmered-composer-plugin-language-update/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)Dependencies (2)Versions (7)Used By (0)

Composer Auto Language Updates
==============================

[](#composer-auto-language-updates)

This package is abandoned. Use this package instead: [inpsyde/wp-translation-downloader](https://github.com/inpsyde/wp-translation-downloader).
-----------------------------------------------------------------------------------------------------------------------------------------------

[](#this-package-is-abandoned-use-this-package-instead-inpsydewp-translation-downloader)

This package will automatically update translations for WordPress core, themes &amp; plugins when you install or update them via composer.\*

This is a fork by the unmaintained [package](https://github.com/Angrycreative/composer-plugin-language-update) by Angry Creative.

*\* This only works if the translations are available via the WordPress API.*

Installation instructions
-------------------------

[](#installation-instructions)

#### 1. Require the package.

[](#1-require-the-package)

Run `composer require pelmered/composer-plugin-language-update`.

#### 2. Define the languages used on your site and the path to your wp-content directory.

[](#2-define-the-languages-used-on-your-site-and-the-path-to-your-wp-content-directory)

This can be done by adding the following parameters to the extras object in your sites' main `composer.json` file.

```
"extra": {
  "wordpress-languages": [ "en_GB", "sv_SE", "da_DK" ],
  "wordpress-content-dir": "public/wp-content"
 }
```

(We need to add a list of locales manually as this operation cannot rely on having a connection to the database available).

#### 3. Add the required composer install hooks.

[](#3-add-the-required-composer-install-hooks)

Add the following lines to the `scripts` section of your `composer.json`.

```
"scripts": {
  "post-install-cmd": "@wp-language-update",
  "post-update-cmd": "@wp-language-update",
  "wp-language-update": [
    "AngryCreative\\WPLanguageUpdater\\PostUpdateLanguageUpdate::update_t10ns"
  ],
  "post-package-uninstall": "AngryCreative\\WPLanguageUpdater\\PostUpdateLanguageUpdate::delete_t10ns"
}
```

That's it. Next time you run a `composer update|install` the translations for the relevant packages will be installed automatically.

### Tests

[](#tests)

If you're testing, this package must be installed as a part of WordPress installation. You should ideally remove the entire `wp-content/languages` directory, so as to make sure the package behaves as expected.

Obviously you should probably do this on seperate branch, so you don't remove t10ns accidentaly when you run the tests.

`cd` into the packagage directory and run `composer test`.

You **may** need to run the tests as root to avoid permissions errors when creating the directories.

### WTF?

[](#wtf)

#### I can haz missing translation plz?

[](#i-can-haz-missing-translation-plz)

This only works if the t10ns are found on the WordPress API, eg. [https://api.wordpress.org/translations/plugins/1.0/?slug=redirection&amp;version=2.7.3](https://api.wordpress.org/translations/plugins/1.0/?slug=redirection&version=2.7.3)

#### I can haz missing feature plz?

[](#i-can-haz-missing-feature-plz)

Sure thing! This is GitHub so just make us a pull request and we'll work together on making that happen.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 89.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~66 days

Total

5

Last Release

2833d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/680058?v=4)[Peter Elmered](/maintainers/pelmered)[@pelmered](https://github.com/pelmered)

---

Top Contributors

[![pelmered](https://avatars.githubusercontent.com/u/680058?v=4)](https://github.com/pelmered "pelmered (35 commits)")[![richardsweeney](https://avatars.githubusercontent.com/u/761071?v=4)](https://github.com/richardsweeney "richardsweeney (2 commits)")[![khromov](https://avatars.githubusercontent.com/u/1207507?v=4)](https://github.com/khromov "khromov (1 commits)")[![tyrann0us](https://avatars.githubusercontent.com/u/8144115?v=4)](https://github.com/tyrann0us "tyrann0us (1 commits)")

---

Tags

composerwordpresslanguagespluginsthemes

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pelmered-composer-plugin-language-update/health.svg)

```
[![Health](https://phpackages.com/badges/pelmered-composer-plugin-language-update/health.svg)](https://phpackages.com/packages/pelmered-composer-plugin-language-update)
```

###  Alternatives

[wpbones/wpbones

WordPress framework for Laravel developers

1714.8k1](/packages/wpbones-wpbones)[balbuf/composer-wp

Manage WordPress core, plugins, and themes with composer.

173.6k](/packages/balbuf-composer-wp)[klisl/yii2-languages

Package

186.0k1](/packages/klisl-yii2-languages)[wcm/wcm-lang-switch

Adds a button to the admin toolbar. This buttons allows users to seamlessly switch between available languages..

212.0k](/packages/wcm-wcm-lang-switch)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
