{"id":20901380,"url":"https://github.com/drupal-composer/drupal-l10n","last_synced_at":"2025-05-13T02:30:45.072Z","repository":{"id":54388027,"uuid":"139435188","full_name":"drupal-composer/drupal-l10n","owner":"drupal-composer","description":"Composer Plugin for downloading Drupal translation files.","archived":false,"fork":false,"pushed_at":"2024-09-21T16:27:51.000Z","size":149,"stargazers_count":11,"open_issues_count":3,"forks_count":3,"subscribers_count":4,"default_branch":"2.0.x","last_synced_at":"2025-04-20T20:03:22.910Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drupal-composer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-02T11:37:33.000Z","updated_at":"2025-02-19T11:44:10.000Z","dependencies_parsed_at":"2024-06-21T14:10:42.526Z","dependency_job_id":"0f309a8c-f23d-4364-a7c7-e4537574233f","html_url":"https://github.com/drupal-composer/drupal-l10n","commit_stats":{"total_commits":134,"total_committers":10,"mean_commits":13.4,"dds":0.6940298507462687,"last_synced_commit":"db74083749de3b65d685010240d072c9f7cccb9a"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drupal-composer%2Fdrupal-l10n","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drupal-composer%2Fdrupal-l10n/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drupal-composer%2Fdrupal-l10n/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drupal-composer%2Fdrupal-l10n/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drupal-composer","download_url":"https://codeload.github.com/drupal-composer/drupal-l10n/tar.gz/refs/heads/2.0.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253859438,"owners_count":21975107,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T11:30:17.212Z","updated_at":"2025-05-13T02:30:44.795Z","avatar_url":"https://github.com/drupal-composer.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# drupal-l10n\n\n[![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)\n\nComposer plugin for automatically downloading Drupal translation files when\nusing Composer to manage Drupal projects.\n\nThis plugin is useful when you want to package your project and then deploy this\npackage on a target environment and that this environment does not have access\nto a localization server. So you have to prepare the translations before\ndeploying.\n\nIt avoids you to have to put the localization files under your VCS or to have a\nlocal site to download the translations.\n\n## Usage\n\nRun `composer require drupal-composer/drupal-l10n` in your composer project\nbefore installing or updating `drupal/core`.\n\nOnce drupal-l10n is required by your project, it will automatically download the\ntranslations files whenever `composer update` download new versions of Drupal\nprojects installed. It also runs on `composer require` command.\n\nYou can manually download the localization files according to your configuration\nby using `composer drupal:l10n`.\n\n## Configuration\n\nYou can configure the plugin by providing some settings in the `extra` section\nof your root `composer.json`.\n\n```json\n{\n  \"extra\": {\n    \"drupal-l10n\": {\n      \"destination\": \"translations/contrib\",\n      \"languages\": [\n        \"fr\",\n        \"es\"\n      ]\n    }\n  }\n}\n```\n\nThe `destination` parameter may be used to specify the destination folder of the\ntranslation files. By default the destination is\n`sites/default/files/translations`.\n\nThe `languages` parameter specify the languages you want to retrieve.\n\n## Drupal configuration\n\nYou can say to Drupal to not download translations files by updating your\nconfiguration on the pages:\n* `/admin/config/regional/translate/settings`: `Local files only` option\n* `/admin/config/media/file-system`: `Interface translations directory` field\n\nor by putting the following lines in your settings.php file:\n\n```php\n$config['locale.settings']['translation']['path'] = 'translations/contrib';\n$config['locale.settings']['translation']['use_source'] = 'local';\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrupal-composer%2Fdrupal-l10n","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrupal-composer%2Fdrupal-l10n","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrupal-composer%2Fdrupal-l10n/lists"}