PHPackages                             drupal-composer/drupal-l10n - 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. drupal-composer/drupal-l10n

ActiveComposer-plugin[Localization &amp; i18n](/categories/localization)

drupal-composer/drupal-l10n
===========================

Composer Plugin for downloading Drupal translation files

2.0.5(1y ago)11374.5k↓44.5%5[4 issues](https://github.com/drupal-composer/drupal-l10n/issues)[1 PRs](https://github.com/drupal-composer/drupal-l10n/pulls)GPL-2.0-or-laterPHPPHP &gt;=5.6CI passing

Since Jul 2Pushed 1mo ago3 watchersCompare

[ Source](https://github.com/drupal-composer/drupal-l10n)[ Packagist](https://packagist.org/packages/drupal-composer/drupal-l10n)[ RSS](/packages/drupal-composer-drupal-l10n/feed)WikiDiscussions 2.0.x Synced 2d ago

READMEChangelog (10)Dependencies (3)Versions (13)Used By (0)

drupal-l10n
===========

[](#drupal-l10n)

[![CI](https://github.com/drupal-composer/drupal-l10n/actions/workflows/tests.yml/badge.svg?branch=2.0.x)](https://github.com/drupal-composer/drupal-l10n/actions/workflows/tests.yml)

Composer plugin for automatically downloading Drupal translation files when using Composer to manage Drupal projects.

This plugin is useful when you want to package your project and then deploy this package on a target environment and that this environment does not have access to a localization server. So you have to prepare the translations before deploying.

It avoids you to have to put the localization files under your VCS or to have a local site to download the translations.

Usage
-----

[](#usage)

Run `composer require drupal-composer/drupal-l10n` in your composer project before installing or updating `drupal/core`.

Once drupal-l10n is required by your project, it will automatically download the translations files whenever `composer update` download new versions of Drupal projects installed. It also runs on `composer require` command.

You can manually download the localization files according to your configuration by using `composer drupal:l10n`.

Configuration
-------------

[](#configuration)

You can configure the plugin by providing some settings in the `extra` section of your root `composer.json`.

```
{
  "extra": {
    "drupal-l10n": {
      "destination": "translations/contrib",
      "languages": [
        "fr",
        "es"
      ]
    }
  }
}
```

The `destination` parameter may be used to specify the destination folder of the translation files. By default the destination is `sites/default/files/translations`.

The `languages` parameter specify the languages you want to retrieve.

Drupal configuration
--------------------

[](#drupal-configuration)

You can say to Drupal to not download translations files by updating your configuration on the pages:

- `/admin/config/regional/translate/settings`: `Local files only` option
- `/admin/config/media/file-system`: `Interface translations directory` field

or by putting the following lines in your settings.php file:

```
$config['locale.settings']['translation']['path'] = 'translations/contrib';
$config['locale.settings']['translation']['use_source'] = 'local';
```

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance60

Regular maintenance activity

Popularity44

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~240 days

Recently: every ~481 days

Total

13

Last Release

36d ago

Major Versions

1.0.2 → 2.0.02020-10-31

1.0.3 → 2.0.12021-02-01

1.0.x-dev → 2.0.32023-03-19

### Community

Maintainers

![](https://www.gravatar.com/avatar/c711eb409734c42befd3bb9d507be67da46d0db9bd03c5172c8fe2da1705c239?d=identicon)[webflo](/maintainers/webflo)

![](https://www.gravatar.com/avatar/f81f2e7ca24b170cc74f416183627f57a41af342f850cfa232d5c40e9b688ffd?d=identicon)[FlorentTorregrosa](/maintainers/FlorentTorregrosa)

---

Top Contributors

[![greg-1-anderson](https://avatars.githubusercontent.com/u/612191?v=4)](https://github.com/greg-1-anderson "greg-1-anderson (49 commits)")[![derhasi](https://avatars.githubusercontent.com/u/118502?v=4)](https://github.com/derhasi "derhasi (41 commits)")[![FlorentTorregrosa](https://avatars.githubusercontent.com/u/1962368?v=4)](https://github.com/FlorentTorregrosa "FlorentTorregrosa (38 commits)")[![webflo](https://avatars.githubusercontent.com/u/123946?v=4)](https://github.com/webflo "webflo (17 commits)")[![claudiu-cristea](https://avatars.githubusercontent.com/u/473868?v=4)](https://github.com/claudiu-cristea "claudiu-cristea (2 commits)")[![hctom](https://avatars.githubusercontent.com/u/8543951?v=4)](https://github.com/hctom "hctom (1 commits)")[![L0rD59](https://avatars.githubusercontent.com/u/3115143?v=4)](https://github.com/L0rD59 "L0rD59 (1 commits)")[![VangelisP](https://avatars.githubusercontent.com/u/14973113?v=4)](https://github.com/VangelisP "VangelisP (1 commits)")[![bartfeenstra](https://avatars.githubusercontent.com/u/376735?v=4)](https://github.com/bartfeenstra "bartfeenstra (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/drupal-composer-drupal-l10n/health.svg)

```
[![Health](https://phpackages.com/badges/drupal-composer-drupal-l10n/health.svg)](https://phpackages.com/packages/drupal-composer-drupal-l10n)
```

###  Alternatives

[phpro/grumphp

A composer plugin that enables source code quality checks.

4.3k16.7M1.0k](/packages/phpro-grumphp)[symfony/runtime

Enables decoupling PHP applications from global state

74798.8M1.0k](/packages/symfony-runtime)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5445.2M564](/packages/drupal-core-composer-scaffold)[drupal/core-project-message

Adds a message after Composer installation.

2124.7M203](/packages/drupal-core-project-message)[oro/platform

Business Application Platform (BAP)

645143.5k115](/packages/oro-platform)[sandersander/composer-link

Adds ability to link local packages for development with composer

98457.9k](/packages/sandersander-composer-link)

PHPackages © 2026

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